package com.gadgets.busi.bm01.common;

import com.gadgets.framework.common.constant.GadgetsConstant;

import java.util.HashMap;

/**
 * The type Gadgets bm 01 constant.
 *
 * @author UncleXiu
 * @version V1.0.0
 * @data 2020 -09-21
 */
public class GadgetsBm01Constant {

    /**
     * 文本拷贝模块编号
     */
    public static final String BM01_MODUEL_NO = "bm01";

    /**
     * The type Copy moduel.
     *
     * @author UncleXiu
     * @version V1.0.0
     * @data 2020 -09-21
     */
    public static class COPY_MODUEL{
        /**
         * 独立拷贝
         */
        public static final String SINGLE_COPY = GadgetsConstant.NUMBER_CONSTANT.STR_NUMBER_0;
        /**
         * 组合拷贝
         */
        public static final String MULTI_COPY = GadgetsConstant.NUMBER_CONSTANT.STR_NUMBER_1;
    }

    /**
     * The type Copy task ori.
     */
    public static class COPY_TASK_ORI{
        /**
         * 1024来源-文本
         */
        public static final String COPY_1024_TXT = "1024Txt";
        /**
         * 1024来源-图片
         */
        public static final String COPY_1024_IMG = "1024Img";
    }

    /**
     * The type Event list.
     *
     * @author UncleXiu
     * @version V1.0.0
     * @data 2020 -09-21
     */
    public static class EVENT_LIST {
        /**
         * 任务启动事件
         */
        public static final String BM01_TASK_START_EVENT = "gadgetsBm01TaskStartEvent";
        /**
         * 任务-请求HTTP成功事件
         */
        public static final String BM01_TASK_HTTP_REQUEST_FINISH_EVENT = "gadgetsBm01HttpFinishEvent";
        /**
         * 任务完成事件
         */
        public static final String BM01_TASK_FINISH_EVENT = "gadgetsBm01TaskFinishEvent";
        /**
         * 文件写入路径事件
         */
        public static final String BM01_TASK_FILE_WRITE_EVENT = "gadgetsBm01TaskFileEvent";
    }

    /**
     * The type Http request head.
     *
     * @author UncleXiu
     * @version V1.0.0
     * @data 2020 -09-21
     */
    public static class HTTP_REQUEST_HEAD{
        static {
            HashMap<String,String> head1024 = new HashMap<>();
            head1024.put("authority","x.qcyghfzh.rocks");
            head1024.put("scheme","https");
            head1024.put("accept","text/html;charset=utf-8,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9");
            head1024.put("accept-language","zh-CN,zh;q=0.9,en;q=0.8");
            head1024.put("cache-control","max-age=0");
            head1024.put("Content-Type","UTF-8");
            head1024.put("upgrade-insecure-requests","1");
            head1024.put("user-agent","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36");
            head1024.put("sec-fetch-dest","document");
            head1024Map = head1024;
        }

        /**
         * HTTP-Head头
         */
        public static final HashMap<String,String> head1024Map;
    }

}
